package com.youlai.boot.system.model.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description ="文章对象")
@Data
public class ArticleVO {
    @Schema(description="ID")
    private Long id;

    @Schema(description="标题")
    private String title;

    @Schema(description="内容")
    private String content;

    @Schema(description="摘要")
    private String zhaiyao;

    @Schema(description="缩略图")
    private String img;

    @Schema(description="top分类名称")
    private String typeTopName;


    @Schema(description="分类名称")
    private String typeName;

    @Schema(description="分类ID")
    private Integer flid;

    @Schema(description="状态")
    private Integer status;

    @Schema(description="浏览量")
    private Integer view;

    @Schema(description="排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}